#输出九九乘法表

#while

i=1
while i <= 9:
	j=1
	while j <= i:
		print("{1:02}*{0:02}={2:02}".format(i,j,i*j),end=" ")
		j+=1
	i+=1
	print("")

print("="*80)

i=9		
while i >= 1:
	j=1
	while j<= i:
		print("{1:02}*{0:02}={2:02}".format(i,j,i*j),end=" ")
		j+=1
	i-=1	
	print("")	

print("="*80)

i=1
while i <=9:
	k=0
	while k < 9-i:
		print(" "*8,end=" ")
		k+=1
	j=i
	while j >= 1:		
		print("{1:02}*{0:02}={2:02}".format(i,j,i*j),end=" ")
		j-=1
	i+=1
	print("")

print("="*80)

i=9
while i >= 1:
	k=0
	while k < 9-i:
		print(" "*8,end=" ")
		k+=1
	j=i
	while j >=1:		
		print("{1:02}*{0:02}={2:02}".format(i,j,i*j),end=" ")
		j-=1
	i-=1	
	print("")

print("="*80)

#for    in

for i in range(1,10):
	for j in range(1,i+1):
		print("{1:02}*{0:02}={2:02}".format(i,j,i*j),end=" ")
	print("")

print("="*80)

for i in range(9,0,-1):
	for j in range(1,i+1):
		print("{1:02}*{0:02}={2:02}".format(i,j,i*j),end=" ")	
	print("")

print("="*80)

for i in range(1,10):
	for k in range(9-i):
		print(" "*8,end=" ")
	for j in range(i,0,-1):
		print("{1:02}*{0:02}={2:02}".format(i,j,i*j),end=" ")
	print("")

print("="*80)

for i in range(9,0,-1):
	for k in range(9-i):
		print(" "*8,end=" ")
	for j in range(i,0,-1):
		print("{1:02}*{0:02}={2:02}".format(i,j,i*j),end=" ")
	print("")

